package chap4.Task;
import java.util.Scanner;
public class Task15 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("输入一个正数:");
       long a=input.nextLong();
        long i=2;
        while (i <a) {
          if(a%i==0){
              break;
          }
            i++;
        }
        if(i==a){
            System.out.println(a+"是质数");
        }else{
            System.out.println(a+"不是质数");
        }
    }

}
